package cn.changein.framework.service.setting.thirdInterfaceConfig;

import cn.changein.framework.base.pojo.page.PageInfo;
import cn.changein.framework.model.setting.thirdInterfaceConfig.entity.ThirdInterfaceConfig;
import cn.changein.framework.model.setting.thirdInterfaceConfig.model.params.ThirdInterfaceConfigParam;
import cn.changein.framework.model.setting.thirdInterfaceConfig.model.result.ThirdInterfaceConfigResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * <p>
 * 对接第三方接口的配置 服务类
 * </p>
 *

 * @Date 2021-01-21
 * @Copyright: companyName
 * @Version 1.0
 * @Since JDK1.8
 */
public interface ThirdInterfaceConfigService extends IService<ThirdInterfaceConfig> {

    /**
     * 新增
     *

     * @Date 2021-01-21
     */
    void add(ThirdInterfaceConfigParam param);

    /**
     * 删除
     *

     * @Date 2021-01-21
     */
    void delete(ThirdInterfaceConfigParam param);

    /**
     * 更新
     *

     * @Date 2021-01-21
     */
    void update(ThirdInterfaceConfigParam param);

    /**
     * 查询单条数据，Specification模式
     *

     * @Date 2021-01-21
     */
    ThirdInterfaceConfigResult findBySpec(ThirdInterfaceConfigParam param);

    /**
     * 查询列表，Specification模式
     *

     * @Date 2021-01-21
     */
    List<ThirdInterfaceConfigResult> findListBySpec(ThirdInterfaceConfigParam param);

    /**
     * 查询分页数据，Specification模式
     *

     * @Date 2021-01-21
     */
    PageInfo findPageBySpec(ThirdInterfaceConfigParam param);

    /**
     * 根据code查询对应的模板
     *
     * @param code
     * @return
     */
    ThirdInterfaceConfig selectByCode(String code);

}
